Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch the modeling files for remote code models #1872

Closed
wants to merge 2 commits into from

Conversation

winglian
Copy link
Collaborator

models like deepseek v2 rely on trust_remote_code: true which is notoriously hard to monkey patch to work with sample packing. This is a workaround that writes to the modeling code file to import our patch. It should be backwards compatible, so doesn't break when not using packing.

@tmm1 says he'll look into seeing if he can figure out why the original monkey patching doesn't stick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant